Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBP: macOS - Scheduler Progress Notifications #2023

Merged
merged 25 commits into from
Jan 8, 2024
Merged

Conversation

Bunn
Copy link
Collaborator

@Bunn Bunn commented Jan 5, 2024

Task/Issue URL: https://app.asana.com/0/72649045549333/1204684997648613/f

Description:

  • Adds notification from the scheduler to notify the user in some specific conditions.
  • Changes the Launch Agent name to DuckDuckGo Personal Information Removal

Steps to test this PR:

  • Check if the new agent is running using the new name. If it doesn't work you might need to first try these steps

guard let date = calendar.date(byAdding: .minute, value: days, to: Date()) else {
  • This will schedule a notification for 14min.
  • Do the initial create profile + scan flow, check if you received the first scan notification
  • Click in the notification, check if it opens the browser and then the DBP dashboard
  • Wait the 14min from the previous step, check if you receive the check-in notification
  • Change this line let extractedProfiles = try await runner.scan(brokerProfileQueryData, stageCalculator: stageCalculator, showWebView: showWebView, shouldRunNextStep: shouldRunNextStep) to return
let extractedProfiles =  [ExtractedProfile]()

This will simulate all profiles being removed.

Copy link
Contributor

github-actions bot commented Jan 5, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 56f27d3

@Bunn Bunn requested a review from jotaemepereira January 5, 2024 15:40
Copy link
Collaborator

@jotaemepereira jotaemepereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bunn I was able to fire all notifications, awesome work 🎉 . I’m requesting changes because of the following:

When I receive a notification that scans were removed and I open the DBP tab and tap on the notification, nothing will happen; the UI stays like scans are still in progress. We need to reload the tab if it is present when the notification is tapped.

I’ve also added some questions.

Feel free to dismiss my request for changes after I’m OOO

@Bunn
Copy link
Collaborator Author

Bunn commented Jan 8, 2024

Task with PR review follow up: https://app.asana.com/0/0/1206298053191001/f

@Bunn Bunn merged commit 5827b7d into main Jan 8, 2024
14 checks passed
@Bunn Bunn deleted the bunn/dbp/notifications branch January 8, 2024 10:17
samsymons added a commit that referenced this pull request Jan 8, 2024
* main: (35 commits)
  Update login item failure pixel (#2024)
  fix turn off sync error message (#2025)
  DBP: macOS - Scheduler Progress Notifications (#2023)
  DBP: Implement sign-out flow for DBP (#2009)
  Switch CI to Xcode 15.1 (#2022)
  fix(duckplayer): bump CSS for duckplayer nav loop fix (#1982)
  Bump Submodules/privacy-reference-tests from `a3acc21` to `6b7ad1e` (#2006)
  Bump version to 1.69.0 (99)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  Don't force reload tab when restoring state (#2016)
  Bump version to 1.69.0 (98)
  Update embedded files
  Update NetP launch agent logic to include build number (#2015)
  Always use 'sandbox' Application Support directory for Favicons Fetcher (#2013)
  Allow calculations in the address bar (#2012)
  Fix clickable area for buttons in 'Sync with Another Device' view (#2011)
  Fix for empty autofill state displayed on top of existing password items (#1998)
  Update error messages (#1999)
  Autofill never save for site (#1991)
  ...
samsymons added a commit that referenced this pull request Jan 9, 2024
# By Dax the Duck (6) and others
# Via Fernando Bunn (2) and others
* main: (36 commits)
  Send VPN system extension crashes to Sentry (#2002)
  Update login item failure pixel (#2024)
  fix turn off sync error message (#2025)
  DBP: macOS - Scheduler Progress Notifications (#2023)
  DBP: Implement sign-out flow for DBP (#2009)
  Switch CI to Xcode 15.1 (#2022)
  fix(duckplayer): bump CSS for duckplayer nav loop fix (#1982)
  Bump Submodules/privacy-reference-tests from `a3acc21` to `6b7ad1e` (#2006)
  Bump version to 1.69.0 (99)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  Don't force reload tab when restoring state (#2016)
  Bump version to 1.69.0 (98)
  Update embedded files
  Update NetP launch agent logic to include build number (#2015)
  Always use 'sandbox' Application Support directory for Favicons Fetcher (#2013)
  Allow calculations in the address bar (#2012)
  Fix clickable area for buttons in 'Sync with Another Device' view (#2011)
  Fix for empty autofill state displayed on top of existing password items (#1998)
  Update error messages (#1999)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo/Statistics/PixelEvent.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants